#ifndef ROTABIT_H
#define ROTABIT_H


static int delay;
static unsigned char state;
static unsigned char input;
static short count;
static int count2;
static short temporal_result;
static unsigned char transitions[8][4]=
{1,0,7,0,
 2,1,0,1,
 3,2,1,2,
 4,3,2,3,
 5,4,3,4,
 6,5,4,5, 
 7,6,5,6, 
 0,7,6,7
};

unsigned char power(unsigned char state);
void rotabit_run();
void rotabit_init();
void apptask_rotabit();

#endif